from google.appengine.ext import db

class User(db.Model):
    userProp = db.UserProperty()
    serie = db.StringProperty()
    
    
class Serie(db.Model):
    title = db.StringProperty()
    

class Calendar(db.Model):
    serie = db.StringProperty()
    episode = db.StringProperty()
    season = db.IntegerProperty()
    nroEp = db.IntegerProperty()
    date = db.DateProperty()


class Preferences(db.Model):
    userId = db.UserProperty()
    notify = db.BooleanProperty()
    direct = db.BooleanProperty()
    hosting = db.StringProperty()
    formats = db.StringProperty()


class Downloads(db.Model):
    serie = db.StringProperty()
    direct = db.BooleanProperty()
    hosting = db.StringProperty()
    format = db.StringProperty()
    links = db.StringProperty()
    source = db.StringProperty()
    date = db.DateProperty()


class Design(db.Model):
    userId = db.UserProperty()
    layout = db.StringProperty()
    theme = db.StringProperty()
